<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
  <!-- Tab panes -->
  <div class="tab-content" style="margin-top: 10px;">
	<table style="margin-top: 10px;" class="table table-bordered table-condensed">
		<thead>
		  <tr>
		    <th class="bg-primary text-center">所属年份</th>
		    <th class="bg-primary text-center">所属双月</th>
		    <th class="bg-primary text-center">双月检核发布开放时间</th>
		    <th class="bg-primary text-center">双月检核发布截止时间</th>
		    <th class="bg-primary text-center">操作</th>
		  </tr>
		</thead>
		<tbody>
		<?php foreach ($timeUnitList as $k => $v) {?>
		  <tr align="center">
		  	<td><?=$v['year']?></td>
		  	<td><?=$v['name']?></td>
		  	<td><?=$v['spreadTimeSetting']['settleApplyStart']?></td>
		  	<td><?=$v['spreadTimeSetting']['settleApplyEnd']?></td>
		  	<td>
		  		<button type="button" class="btn btn-default btn-primary" onclick="newWindow('双月检核时间管理','<?=printUrl('SpreadSettle','timeUnitAdd', array('id'=>$v['id']))?>',400,400)">修改</button>
		  	</td>
		  </tr>
		<?php } ?>
		</tbody>
	</table>
</div>
<script type="text/javascript">
	$(function(){
		loadYearList('year',<?=$year ? $year : 0?>);
	});
</script>
<?php $this->load->view('Admin/foot');?>